<include file="public+header">

   <!-- 标题  -->
   <div class="title"><lang>数据库优化</lang> ( <a href="{:G::U('backup/index')}"><lang>数据库备份</lang></a> | <a href="{:G::U('backup/restore')}"><lang>数据库恢复</lang></a> |<a href="{:G::U('backup/runsql')}"><lang>运行SQL语句</lang></a> )</div>

  <!-- 正文 -->
  <div id="content" class="content">
       <form action="{:G::U('backup/run_optimize')}" method="post" id="tableList" >
      <table class="form-table full">
          <tr>
              <th valign="top"><label for="num"  class="field"><lang>优化操作</lang> </label></td>
              <td><input type= "hidden" name= "num" value = "{$nNum}">
              <input type="submit" value="  <lang>开始进行数据库表优化</lang>   " class="button" />
              <div class="description"><lang>及时清理数据库碎片，能够加快数据库查询速度</lang></div>
              <div class="warning"><lang>总碎片数</lang>:{$nNum}</div></td>
            </tr>

      </table>
        <table class="data full" id="checkList">
        <thead>
         <tr>
           <th><lang>数据表</lang></th>
           <th><lang>数据表类型</lang></th>
           <th><lang>记录数</lang></th>
           <th><lang>数据</lang></th>
           <th><lang>碎片</lang></th>
           <th><lang>字符集</lang></th>
           <th><lang>状态</lang></th>
        </tr>
        </thead>
        <tbody>
        <foreach for=arrList>
         <tr>
          <td>{$value['table']}</td>
          <td>{$value['type']}</td>
          <td>{$value['rec_num']}</td>
          <td>{$value['rec_size']}</td>
          <td>{$value['rec_chip']}</td>
          <td>{$value['charset']}</td>
          <td>{$value['status']}</td>
        </tr>
        </foreach>
        </tbody>
        </table>
        <table class="form-table full">
          <tr>
              <th valign="top"><label for="node_title"  class="field"><lang>优化操作</lang> </label></td>
              <td><input type= "hidden" name= "num" value = "{$nNum}">
              <input type="submit" value="  <lang>开始进行数据库表优化</lang>   " class="button" />
              <div class="description"><lang>及时清理数据库碎片，能够加快数据库查询速度</lang></div></td>
            </tr>

      </table>
      </form>

   </div>
   <!-- end content -->

<include file="public+footer">